from rest_framework import serializers


from apps.users.models import UserProFile


# serializers 是将python中的数据结构序列化为其他格式（JSON, XML）
class UserRegSerializer(serializers.ModelSerializer):
    class Meta:
        models = UserProFile
        fields = ("nick_name", "avatarUrl", 'gender','password')
